/*
 * XML Type:  InterTransferResponseMessageSetV1
 * Namespace: http://ofx.net/types/2003/04
 * Java type: net.ofx.types.x2003.x04.InterTransferResponseMessageSetV1
 *
 * Automatically generated - do not modify.
 */
package net.ofx.types.x2003.x04.impl;
/**
 * An XML InterTransferResponseMessageSetV1(@http://ofx.net/types/2003/04).
 *
 * This is a complex type.
 */
public class InterTransferResponseMessageSetV1Impl extends net.ofx.types.x2003.x04.impl.AbstractResponseMessageSetImpl implements net.ofx.types.x2003.x04.InterTransferResponseMessageSetV1
{
    
    public InterTransferResponseMessageSetV1Impl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName INTERTRNRS$0 = 
        new javax.xml.namespace.QName("", "INTERTRNRS");
    private static final javax.xml.namespace.QName RECINTERTRNRS$2 = 
        new javax.xml.namespace.QName("", "RECINTERTRNRS");
    private static final javax.xml.namespace.QName INTERSYNCRS$4 = 
        new javax.xml.namespace.QName("", "INTERSYNCRS");
    private static final javax.xml.namespace.QName RECINTERSYNCRS$6 = 
        new javax.xml.namespace.QName("", "RECINTERSYNCRS");
    
    
    /**
     * Gets array of all "INTERTRNRS" elements
     */
    public net.ofx.types.x2003.x04.InterTransactionResponse[] getINTERTRNRSArray()
    {
        synchronized (monitor())
        {
            check_orphaned();
            java.util.List targetList = new java.util.ArrayList();
            get_store().find_all_element_users(INTERTRNRS$0, targetList);
            net.ofx.types.x2003.x04.InterTransactionResponse[] result = new net.ofx.types.x2003.x04.InterTransactionResponse[targetList.size()];
            targetList.toArray(result);
            return result;
        }
    }
    
    /**
     * Gets ith "INTERTRNRS" element
     */
    public net.ofx.types.x2003.x04.InterTransactionResponse getINTERTRNRSArray(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.InterTransactionResponse target = null;
            target = (net.ofx.types.x2003.x04.InterTransactionResponse)get_store().find_element_user(INTERTRNRS$0, i);
            if (target == null)
            {
                throw new IndexOutOfBoundsException();
            }
            return target;
        }
    }
    
    /**
     * Returns number of "INTERTRNRS" element
     */
    public int sizeOfINTERTRNRSArray()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(INTERTRNRS$0);
        }
    }
    
    /**
     * Sets array of all "INTERTRNRS" element
     */
    public void setINTERTRNRSArray(net.ofx.types.x2003.x04.InterTransactionResponse[] intertrnrsArray)
    {
        synchronized (monitor())
        {
            check_orphaned();
            arraySetterHelper(intertrnrsArray, INTERTRNRS$0);
        }
    }
    
    /**
     * Sets ith "INTERTRNRS" element
     */
    public void setINTERTRNRSArray(int i, net.ofx.types.x2003.x04.InterTransactionResponse intertrnrs)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.InterTransactionResponse target = null;
            target = (net.ofx.types.x2003.x04.InterTransactionResponse)get_store().find_element_user(INTERTRNRS$0, i);
            if (target == null)
            {
                throw new IndexOutOfBoundsException();
            }
            target.set(intertrnrs);
        }
    }
    
    /**
     * Inserts and returns a new empty value (as xml) as the ith "INTERTRNRS" element
     */
    public net.ofx.types.x2003.x04.InterTransactionResponse insertNewINTERTRNRS(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.InterTransactionResponse target = null;
            target = (net.ofx.types.x2003.x04.InterTransactionResponse)get_store().insert_element_user(INTERTRNRS$0, i);
            return target;
        }
    }
    
    /**
     * Appends and returns a new empty value (as xml) as the last "INTERTRNRS" element
     */
    public net.ofx.types.x2003.x04.InterTransactionResponse addNewINTERTRNRS()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.InterTransactionResponse target = null;
            target = (net.ofx.types.x2003.x04.InterTransactionResponse)get_store().add_element_user(INTERTRNRS$0);
            return target;
        }
    }
    
    /**
     * Removes the ith "INTERTRNRS" element
     */
    public void removeINTERTRNRS(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(INTERTRNRS$0, i);
        }
    }
    
    /**
     * Gets array of all "RECINTERTRNRS" elements
     */
    public net.ofx.types.x2003.x04.RecurringInterTransactionResponse[] getRECINTERTRNRSArray()
    {
        synchronized (monitor())
        {
            check_orphaned();
            java.util.List targetList = new java.util.ArrayList();
            get_store().find_all_element_users(RECINTERTRNRS$2, targetList);
            net.ofx.types.x2003.x04.RecurringInterTransactionResponse[] result = new net.ofx.types.x2003.x04.RecurringInterTransactionResponse[targetList.size()];
            targetList.toArray(result);
            return result;
        }
    }
    
    /**
     * Gets ith "RECINTERTRNRS" element
     */
    public net.ofx.types.x2003.x04.RecurringInterTransactionResponse getRECINTERTRNRSArray(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.RecurringInterTransactionResponse target = null;
            target = (net.ofx.types.x2003.x04.RecurringInterTransactionResponse)get_store().find_element_user(RECINTERTRNRS$2, i);
            if (target == null)
            {
                throw new IndexOutOfBoundsException();
            }
            return target;
        }
    }
    
    /**
     * Returns number of "RECINTERTRNRS" element
     */
    public int sizeOfRECINTERTRNRSArray()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(RECINTERTRNRS$2);
        }
    }
    
    /**
     * Sets array of all "RECINTERTRNRS" element
     */
    public void setRECINTERTRNRSArray(net.ofx.types.x2003.x04.RecurringInterTransactionResponse[] recintertrnrsArray)
    {
        synchronized (monitor())
        {
            check_orphaned();
            arraySetterHelper(recintertrnrsArray, RECINTERTRNRS$2);
        }
    }
    
    /**
     * Sets ith "RECINTERTRNRS" element
     */
    public void setRECINTERTRNRSArray(int i, net.ofx.types.x2003.x04.RecurringInterTransactionResponse recintertrnrs)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.RecurringInterTransactionResponse target = null;
            target = (net.ofx.types.x2003.x04.RecurringInterTransactionResponse)get_store().find_element_user(RECINTERTRNRS$2, i);
            if (target == null)
            {
                throw new IndexOutOfBoundsException();
            }
            target.set(recintertrnrs);
        }
    }
    
    /**
     * Inserts and returns a new empty value (as xml) as the ith "RECINTERTRNRS" element
     */
    public net.ofx.types.x2003.x04.RecurringInterTransactionResponse insertNewRECINTERTRNRS(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.RecurringInterTransactionResponse target = null;
            target = (net.ofx.types.x2003.x04.RecurringInterTransactionResponse)get_store().insert_element_user(RECINTERTRNRS$2, i);
            return target;
        }
    }
    
    /**
     * Appends and returns a new empty value (as xml) as the last "RECINTERTRNRS" element
     */
    public net.ofx.types.x2003.x04.RecurringInterTransactionResponse addNewRECINTERTRNRS()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.RecurringInterTransactionResponse target = null;
            target = (net.ofx.types.x2003.x04.RecurringInterTransactionResponse)get_store().add_element_user(RECINTERTRNRS$2);
            return target;
        }
    }
    
    /**
     * Removes the ith "RECINTERTRNRS" element
     */
    public void removeRECINTERTRNRS(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(RECINTERTRNRS$2, i);
        }
    }
    
    /**
     * Gets array of all "INTERSYNCRS" elements
     */
    public net.ofx.types.x2003.x04.InterSyncResponse[] getINTERSYNCRSArray()
    {
        synchronized (monitor())
        {
            check_orphaned();
            java.util.List targetList = new java.util.ArrayList();
            get_store().find_all_element_users(INTERSYNCRS$4, targetList);
            net.ofx.types.x2003.x04.InterSyncResponse[] result = new net.ofx.types.x2003.x04.InterSyncResponse[targetList.size()];
            targetList.toArray(result);
            return result;
        }
    }
    
    /**
     * Gets ith "INTERSYNCRS" element
     */
    public net.ofx.types.x2003.x04.InterSyncResponse getINTERSYNCRSArray(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.InterSyncResponse target = null;
            target = (net.ofx.types.x2003.x04.InterSyncResponse)get_store().find_element_user(INTERSYNCRS$4, i);
            if (target == null)
            {
                throw new IndexOutOfBoundsException();
            }
            return target;
        }
    }
    
    /**
     * Returns number of "INTERSYNCRS" element
     */
    public int sizeOfINTERSYNCRSArray()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(INTERSYNCRS$4);
        }
    }
    
    /**
     * Sets array of all "INTERSYNCRS" element
     */
    public void setINTERSYNCRSArray(net.ofx.types.x2003.x04.InterSyncResponse[] intersyncrsArray)
    {
        synchronized (monitor())
        {
            check_orphaned();
            arraySetterHelper(intersyncrsArray, INTERSYNCRS$4);
        }
    }
    
    /**
     * Sets ith "INTERSYNCRS" element
     */
    public void setINTERSYNCRSArray(int i, net.ofx.types.x2003.x04.InterSyncResponse intersyncrs)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.InterSyncResponse target = null;
            target = (net.ofx.types.x2003.x04.InterSyncResponse)get_store().find_element_user(INTERSYNCRS$4, i);
            if (target == null)
            {
                throw new IndexOutOfBoundsException();
            }
            target.set(intersyncrs);
        }
    }
    
    /**
     * Inserts and returns a new empty value (as xml) as the ith "INTERSYNCRS" element
     */
    public net.ofx.types.x2003.x04.InterSyncResponse insertNewINTERSYNCRS(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.InterSyncResponse target = null;
            target = (net.ofx.types.x2003.x04.InterSyncResponse)get_store().insert_element_user(INTERSYNCRS$4, i);
            return target;
        }
    }
    
    /**
     * Appends and returns a new empty value (as xml) as the last "INTERSYNCRS" element
     */
    public net.ofx.types.x2003.x04.InterSyncResponse addNewINTERSYNCRS()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.InterSyncResponse target = null;
            target = (net.ofx.types.x2003.x04.InterSyncResponse)get_store().add_element_user(INTERSYNCRS$4);
            return target;
        }
    }
    
    /**
     * Removes the ith "INTERSYNCRS" element
     */
    public void removeINTERSYNCRS(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(INTERSYNCRS$4, i);
        }
    }
    
    /**
     * Gets array of all "RECINTERSYNCRS" elements
     */
    public net.ofx.types.x2003.x04.RecurringInterSyncResponse[] getRECINTERSYNCRSArray()
    {
        synchronized (monitor())
        {
            check_orphaned();
            java.util.List targetList = new java.util.ArrayList();
            get_store().find_all_element_users(RECINTERSYNCRS$6, targetList);
            net.ofx.types.x2003.x04.RecurringInterSyncResponse[] result = new net.ofx.types.x2003.x04.RecurringInterSyncResponse[targetList.size()];
            targetList.toArray(result);
            return result;
        }
    }
    
    /**
     * Gets ith "RECINTERSYNCRS" element
     */
    public net.ofx.types.x2003.x04.RecurringInterSyncResponse getRECINTERSYNCRSArray(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.RecurringInterSyncResponse target = null;
            target = (net.ofx.types.x2003.x04.RecurringInterSyncResponse)get_store().find_element_user(RECINTERSYNCRS$6, i);
            if (target == null)
            {
                throw new IndexOutOfBoundsException();
            }
            return target;
        }
    }
    
    /**
     * Returns number of "RECINTERSYNCRS" element
     */
    public int sizeOfRECINTERSYNCRSArray()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(RECINTERSYNCRS$6);
        }
    }
    
    /**
     * Sets array of all "RECINTERSYNCRS" element
     */
    public void setRECINTERSYNCRSArray(net.ofx.types.x2003.x04.RecurringInterSyncResponse[] recintersyncrsArray)
    {
        synchronized (monitor())
        {
            check_orphaned();
            arraySetterHelper(recintersyncrsArray, RECINTERSYNCRS$6);
        }
    }
    
    /**
     * Sets ith "RECINTERSYNCRS" element
     */
    public void setRECINTERSYNCRSArray(int i, net.ofx.types.x2003.x04.RecurringInterSyncResponse recintersyncrs)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.RecurringInterSyncResponse target = null;
            target = (net.ofx.types.x2003.x04.RecurringInterSyncResponse)get_store().find_element_user(RECINTERSYNCRS$6, i);
            if (target == null)
            {
                throw new IndexOutOfBoundsException();
            }
            target.set(recintersyncrs);
        }
    }
    
    /**
     * Inserts and returns a new empty value (as xml) as the ith "RECINTERSYNCRS" element
     */
    public net.ofx.types.x2003.x04.RecurringInterSyncResponse insertNewRECINTERSYNCRS(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.RecurringInterSyncResponse target = null;
            target = (net.ofx.types.x2003.x04.RecurringInterSyncResponse)get_store().insert_element_user(RECINTERSYNCRS$6, i);
            return target;
        }
    }
    
    /**
     * Appends and returns a new empty value (as xml) as the last "RECINTERSYNCRS" element
     */
    public net.ofx.types.x2003.x04.RecurringInterSyncResponse addNewRECINTERSYNCRS()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.RecurringInterSyncResponse target = null;
            target = (net.ofx.types.x2003.x04.RecurringInterSyncResponse)get_store().add_element_user(RECINTERSYNCRS$6);
            return target;
        }
    }
    
    /**
     * Removes the ith "RECINTERSYNCRS" element
     */
    public void removeRECINTERSYNCRS(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(RECINTERSYNCRS$6, i);
        }
    }
}
